package com.hspedu.override_;

/**
 * 在main方法中分别创建Person和Student对象，调用say方法输出自我介绍
 */
public class OverrideExercise {
    public static void main(String[] args) {
        Person person = new Person();
        Student student = new Student();
        System.out.println("student : " + student.say());
        System.out.println("person : " + person.say());
    }
}
